home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Devil's Cubes 1.0.1 / source / Devil’s Cubes ƒ / MSG Shell ƒ / msg sounds.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.5 KB  |  54 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        msg sounds.h
  4.  
  5. Purpose:    This is the header file for msg sounds.c
  6.  
  7.  
  8. Devil’s Cubes -- a simple cubes puzzle
  9. Copyright (C) 1993 Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #include <Sound.h>
  29.  
  30. #define NUM_SOUNDS        7
  31.  
  32. enum
  33. {
  34.     sound_startgame = 1000,
  35.     sound_wingame,
  36.     sound_on,
  37.     sound_virgin,
  38.     sound_aboutMSG,
  39.     sound_fluff,
  40.     sound_rotate
  41. };
  42.  
  43. extern    SndChannelPtr        myChannel;
  44. extern    Handle                MySounds[NUM_SOUNDS];
  45. extern    Boolean                gSoundToggle;
  46. extern    Boolean                gSoundAvailable;
  47.  
  48. OSErr OpenTheSoundDevice(void);
  49. void CloseTheSoundDevice(void);
  50. pascal Boolean ProcOFilter(DialogPtr dialog, EventRecord *event, short *item);
  51. void InitSounds(void);
  52. void DoSound(int);
  53. void CloseSounds(void);
  54.